public class Demo {
    public static int add(int x, int y) {
        return x+y;
    }
    public static int add(int x,int y,int z) {
        return x+y+z;
    }

    public static void main1(String[] args) {
        int ret = add(10,20);
        System.out.println("ret = " + ret);
        int ret2 = add(10,20,30);
        System.out.println("ret2 = " + ret2);
    }
}
